import request from '@/utils/request'

// 查询成药处方列表
export function listMedicine_prescription_record(query) {
  return request({
    url: '/dms/medicine_prescription_record/list',
    method: 'get',
    params: query
  })
}

// 查询成药处方详细
export function getMedicine_prescription_record(id) {
  return request({
    url: '/dms/medicine_prescription_record/' + id,
    method: 'get'
  })
}

// 新增成药处方
export function addMedicine_prescription_record(data) {
  return request({
    url: '/dms/medicine_prescription_record',
    method: 'post',
    data: data
  })
}

// 修改成药处方
export function updateMedicine_prescription_record(data) {
  return request({
    url: '/dms/medicine_prescription_record',
    method: 'put',
    data: data
  })
}

// 删除成药处方
export function delMedicine_prescription_record(id) {
  return request({
    url: '/dms/medicine_prescription_record/' + id,
    method: 'delete'
  })
}

// 导出成药处方
export function exportMedicine_prescription_record(query) {
  return request({
    url: '/dms/medicine_prescription_record/export',
    method: 'get',
    params: query
  })
}